package com.jason.redCherry.dao.Impl;

import com.jason.redCherry.base.BaseMyBatisDaoSupport;
import com.jason.redCherry.dao.UserMapper;
import com.jason.redCherry.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Jason on 2016/9/7.
 */
@Repository
public class UserMapperImpl extends BaseMyBatisDaoSupport implements UserMapper {

    public static String NAME = "com.jason.redCherry.dao.UserMapper.";

    public int deleteByPrimaryKey(String userId) {
        return 0;
    }

    public int insert(User record) {
        return 0;
    }

    public User selectByPrimaryKey(String userId) {
        return null;
    }

    public List<User> selectAll() {
        return null;
    }

    public int updateByPrimaryKey(User record) {
        return 0;
    }

    public User selectByUserName(String userName) {
        return this.getSqlSession().selectOne(NAME + "selectByUserName", userName);
    }
}
